package com.wuseguang.springcloud.controller;


import com.wuseguang.springcloud.Filter.RequestParameterWrapper;
import com.wuseguang.springcloud.service.SchoolRatingLimitsService;
import com.wuseguang.springcloud.util.Result;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 学校评分限制 前端控制器
 * </p>
 *
 * @author 
 * @since 2020-07-23
 */
@RestController
@RequestMapping("/schoolRatingLimits")
public class SchoolRatingLimitsController {

    private Logger logger = LoggerFactory.getLogger(this.getClass());

    @Autowired
    private SchoolRatingLimitsService schoolRatingLimitsServiceImpl;

    /**
     * 查询学校评分限制
     * @param request
     * @return
     */
    @RequestMapping("/findSchoolRatingLimits")
    public Result findSchoolRatingLimits(RequestParameterWrapper request){
        //学校id
        String schoolId = request.getParam("schoolId");
        return schoolRatingLimitsServiceImpl.findSchoolRatingLimits(schoolId);
    }

}

